// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
/*
1.导入axios
import axios from "axios";
2.导入全局配置中
Vue.prototype.axios=axios
3. 在new Vue({})里面加入axios
new Vue({
  el: '#app',
  router,
  axios,  <======看看这里
  components: { App },
  template: '<App/>'
})
 */
import axios from "axios";
import Reg from "./components/Reg";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vuex from 'vuex'
/* 导入store 会自动去读取里面的index.js文件 */
import store from './store'
/* 导入vuex前端状态管理技术 */
Vue.use(Vuex);
Vue.config.productionTip = false
/* 导入全局配置 axios */
/*Vue.use(VueAxios, axios)*/
Vue.prototype.axios=axios
/* 导入使用ElementUI */
Vue.use(ElementUI);
Vue.component("reg",Reg)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  axios,
  store,
  components: { App },
  template: '<App/>'
})
